﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;


namespace ExpenseSystem.Model
{
    [TableName("SAM_QUOTEDETAIL")]
    public class QuoteDetailModel:NormalModel
    {
        private long _productionid;
        private long _quoteid;
        private decimal _pricelv0; //一般面价
        private decimal _pricelv1; //折扣标价
        private decimal _pricelv2; //实际交易价
        private decimal _pricelv3; //VIP交易价
        private decimal _pricelv4; //业务计提线
        private decimal _pricelv5; //成本价

        public virtual long ProductionId
        {
            get { return _productionid; }
            set
            {
                if (_productionid == value)
                    return;
                _productionid = value;
                if (!PropertyUpdated.Contains("ProductionId"))
                    PropertyUpdated.Add("ProductionId");
            }
        }
        public virtual long QuoteId
        {
            get { return _quoteid; }
            set
            {
                if (_quoteid == value)
                    return;
                _quoteid = value;
                if (!PropertyUpdated.Contains("QuoteId"))
                    PropertyUpdated.Add("QuoteId");
            }
        }

        public virtual decimal PriceLv0
        {
            get { return _pricelv0; }
            set
            {
                if (_pricelv0 == value)
                    return;
                _pricelv0 = value;
                if (!PropertyUpdated.Contains("PriceLv0"))
                    PropertyUpdated.Add("PriceLv0");
            }
        }

        public virtual decimal PriceLv1
        {
            get { return _pricelv1; }
            set
            {
                if (_pricelv1 == value)
                    return;
                _pricelv1 = value;
                if (!PropertyUpdated.Contains("PriceLv1"))
                    PropertyUpdated.Add("PriceLv1");
            }
        }

        public virtual decimal PriceLv2
        {
            get { return _pricelv2; }
            set
            {
                if (_pricelv2 == value)
                    return;
                _pricelv2 = value;
                if (!PropertyUpdated.Contains("PriceLv2"))
                    PropertyUpdated.Add("PriceLv2");
            }
        }

        public virtual decimal PriceLv3
        {
            get { return _pricelv3; }
            set
            {
                if (_pricelv3 == value)
                    return;
                _pricelv3 = value;
                if (!PropertyUpdated.Contains("PriceLv3"))
                    PropertyUpdated.Add("PriceLv3");
            }
        }

        public virtual decimal PriceLv4
        {
            get { return _pricelv4; }
            set
            {
                if (_pricelv4 == value)
                    return;
                _pricelv4 = value;
                if (!PropertyUpdated.Contains("PriceLv4"))
                    PropertyUpdated.Add("PriceLv4");
            }
        }

        public virtual decimal PriceLv5
        {
            get { return _pricelv5; }
            set
            {
                if (_pricelv5 == value)
                    return;
                _pricelv5 = value;
                if (!PropertyUpdated.Contains("PriceLv5"))
                    PropertyUpdated.Add("PriceLv5");
            }
        }
    }
}
